package models

import (
	"github.com/goravel/framework/database/orm"
)

type User struct {
	orm.Model
	Name  string
	Phone string
	Email string
	Age   int
	orm.Timestamps
}

// 指定表名
func (r *User) TableName() string {
	return "users"
}

// 指定数据库驱动
func (r *User) Connection() string {
	return "mysql"
}
